package com.uls.zsw.mapper;

import java.util.List;
import com.uls.zsw.domain.ElectricityUsageInfo;

/**
 * 用电信息Mapper接口
 * 
 * @author zsw
 * @date 2024-11-25
 */
public interface ElectricityUsageInfoMapper 
{
    /**
     * 查询用电信息
     * 
     * @param electricityUsageId 用电信息主键
     * @return 用电信息
     */
    public ElectricityUsageInfo selectElectricityUsageInfoByElectricityUsageId(Long electricityUsageId);

    /**
     * 查询用电信息列表
     * 
     * @param electricityUsageInfo 用电信息
     * @return 用电信息集合
     */
    public List<ElectricityUsageInfo> selectElectricityUsageInfoList(ElectricityUsageInfo electricityUsageInfo);

    /**
     * 新增用电信息
     * 
     * @param electricityUsageInfo 用电信息
     * @return 结果
     */
    public int insertElectricityUsageInfo(ElectricityUsageInfo electricityUsageInfo);

    /**
     * 修改用电信息
     * 
     * @param electricityUsageInfo 用电信息
     * @return 结果
     */
    public int updateElectricityUsageInfo(ElectricityUsageInfo electricityUsageInfo);

    /**
     * 删除用电信息
     * 
     * @param electricityUsageId 用电信息主键
     * @return 结果
     */
    public int deleteElectricityUsageInfoByElectricityUsageId(Long electricityUsageId);

    /**
     * 批量删除用电信息
     * 
     * @param electricityUsageIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteElectricityUsageInfoByElectricityUsageIds(Long[] electricityUsageIds);

    /**
     * 根据宿舍编号查询用电信息
     * @param dormitoryId
     * @return
     */
    public ElectricityUsageInfo selectElectricityUsageInfoByDormitoryId(Long dormitoryId);
}
